#include <string>
#include <sstream>
#include <vector>
#include <fstream>
#include <iostream>
#include <math.h>
#include <stdio.h>

#include <cv.h>
#include <cvaux.h>
#include <highgui.h>
#include <opencv2/ml/ml.hpp>

#include "stdafx.h"
#include "optimization.h"

#include <stdlib.h>
#include <time.h>

using namespace std;
using namespace cv;
using namespace alglib;

double calcEnt(Mat &M,Mat mask);
void scrollbar_onchange(int count,void *data);
Mat main_process( double alphaIn, double argv6, char* imagePath_h, char* imagePath_m, char* imagePath_d);